package org.example.workbench.service.impl;

import org.example.workbench.domain.ClueRemark;
import org.example.workbench.mapper.ClueRemarkMapper;
import org.example.workbench.service.ClueRemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("ClueRemarkService")
public class ClueRemarkImpl implements ClueRemarkService {
    @Autowired
    private ClueRemarkMapper clueRemarkMapper;

    @Override
    public int deleteClueRemarkById(String id) {
        return clueRemarkMapper.deleteClueRemarkById(id);
    }

    @Override
    public int deleteRemarkByClueId(String clueId) {
        return clueRemarkMapper.deleteRemarkByClueId(clueId);
    }

    @Override
    public int updateClueRemarkByMap(Map<String, Object> map) {
        return clueRemarkMapper.updateClueRemarkByMap(map);
    }

    @Override
    public ClueRemark selectOneClueRemarkById(String id) {
        return clueRemarkMapper.selectOneClueRemarkById(id);
    }

    @Override
    public int insertOneClueRemarkByClueRemark(ClueRemark clueRemark) {
        return clueRemarkMapper.insertOneClueRemarkByClueRemark(clueRemark);
    }

    @Override
    public List<ClueRemark> getAllClueRemarkById(String id) {
        return clueRemarkMapper.getAllClueRemarkById(id);
    }
}
